<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>我的藏酒</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<include file="public/comm"/>
	</head>

	<body>
		<header class="mui-bar mui-bar1 mui-bar-nav fs_xl">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title fs_xl"><div class="h-mid"><if $recordInfo.types == 0>提酒详情<else />赠酒详情 </if></div></h1>
		</header>
		<div class="mui-content fs_xl">
			<if condition="$recordInfo.types ==0">
				<ul class="mui-table-view">
					<if $recordInfo.order_info.extract_type == 0>
						<li class="mui-table-view-cell">提酒方式:商家配送</li>
						<li class="mui-table-view-cell">取货人:{$recordInfo.consignee}</li>
						<li class="mui-table-view-cell">联系电话:{$recordInfo.mobile}</li>
						<li class="mui-table-view-cell">发货地址:{$recordInfo.address}</li>
						<li class="mui-table-view-cell">状态:{$order_cellar_status[$recordInfo.order_info.order_status]}</li>
					<else />
						<li class="mui-table-view-cell">提酒方式:自提</li>
						<li class="mui-table-view-cell">提酒人:{$recordInfo.order_info.consignee}</li>
						<li class="mui-table-view-cell">联系电话:{$recordInfo.order_info.phone}</li>
						<li class="mui-table-view-cell">提酒时间:{$recordInfo.order_info.date}</li>
						<li class="mui-table-view-cell">状态:{$order_cellar_status[$recordInfo.order_info.order_status]}</li>
					</if>
					<li class="mui-table-view-cell">赠酒编号:{$recordInfo.bottle_num}</li>
					<div class="mui-button-row">
						<if $recordInfo.order_info.order_status == 0> 
							<button type="button" class="mui-btn mui-btn-danger"  id="cancel">取消发货</button>
						</if>
					</div>
				</ul>
			<else />
				<div class="zengs">
					<ul>
						<li class="mui-table-view-cell">
							<label>好友电话</label><span class="fs_m" style="padding-left: 1.6em;color: #6c6c6c;">{$recordInfo.mobile1}</span>
						</li>
						<li class="mui-table-view-cell">
							<label>好友账号</label><span class="fs_m" style="padding-left: 1.6em;color: #6c6c6c;">{$recordInfo.nickname}</span>
						</li>
						<li class="mui-table-view-cell">
							<label>文字祝福</label><span class="fs_m" style="padding-left: 1.6em; color: #6c6c6c;">{$recordInfo.order_info.msg}</span>
						</li>
						<li class="mui-table-view-cell" style="color: #6c6c6c;">
							<label style="padding: 0;padding-right: 1.0em;">藏酒编码</label>
							<volist name="$recordInfo.bottle_num1"  id="vo">
								<span class="fs_m">{$vo}</span>
							</volist>
						</li>
					</ul>
				</div>
			</if>
		</div>
	</body>
	
<script type="text/javascript">
	$(document).ready(function(){
		$("#cancel").click(function(){
			var rec_id = {$recordInfo.id};
			$.ajax({
				type:"POST",
				url:"/Mobile/User/cellar_cancel",
				data:{"rec_id":rec_id},
				dataType:"json",
				success:function(date){
					alert(date.msg);
					if(date.status){
						location.reload();
					}
				}
			});
		});
	});
</script>
</html>